package com.fangcang.mongodb.config;
/**
 * mongodb配置类
 * @author fangcang
 * @date 2019年2月28日
 * @description
 */
public class MongoConfig {

	private String host;//ip地址
	private int port;//商品
	private String dbName;//数据库名
	private String userName;//用户名
	private String password;//密码
	private String collectionName;//集合
	
	public MongoConfig() {
		super();
	}
	
	public MongoConfig(String host, int port, String dbName, String userName, String password, String collectionName) {
		super();
		this.host = host;
		this.port = port;
		this.dbName = dbName;
		this.userName = userName;
		this.password = password;
		this.collectionName = collectionName;
	}
	public String getHost() {
		return host;
	}
	public void setHost(String host) {
		this.host = host;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public String getDbName() {
		return dbName;
	}
	public void setDbName(String dbName) {
		this.dbName = dbName;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	public String getCollectionName() {
		return collectionName;
	}

	public void setCollectionName(String collectionName) {
		this.collectionName = collectionName;
	}
}
